/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ejb.person.address;

import enteties.person.address.AddresstypeFacadeLocal;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import util.person.address.AddresstypeDetails;

/**
 *
 * @author Gebruiker
 */
@Stateless
public class AddresstypeBean implements AddresstypeBeanRemote {
    @EJB
    private AddresstypeFacadeLocal addresstypeFacade;

    @Override
    public Long createAddresstype(String name){
        return addresstypeFacade.createAddressytpe(name);
    }
    
    @Override
    public void editAddresstype(Long id, String name){
        addresstypeFacade.editAddresstype(id, name);
    }
    
    @Override
    public void removeAddresstype(Long id){
        addresstypeFacade.removeAddresstype(id);
    }
    
    @Override
    public AddresstypeDetails getAddresstypeDetails(Long id){
        return addresstypeFacade.getAddresstypeDetails(id);
    }
    

}
